<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>企业信息管理</title>
	<meta name="decorator" content="default"/>
	<%@include file="/WEB-INF/views/include/treetable.jsp" %>
	<script type="text/javascript">
        $(document).ready(function() {
            $("#treeTable").treeTable({expandLevel : 3});
        });
        function updateSort() {
            loading('正在提交，请稍等...');
            $("#listForm").attr("action", "${ctx}/enterprise/enterprise/updateSort");
            $("#listForm").submit();
        }
	</script>
</head>
<body>
<ul class="nav nav-tabs">
	<li class="active"><a href="${ctx}/enterprise/enterprise/">企业信息列表</a></li>
	<li><a href="${ctx}/enterprise/enterprise/form">企业信息添加</a></li>
</ul>
<sys:message content="${message}"/>
<form id="listForm" method="post">
	<table id="treeTable" class="table table-striped table-bordered table-condensed">
		<tr><th>企业名称</th><th>营业执照</th><th style="text-align:center;">经营地址</th><th>环保专干</th><th>法定代表人</th><th>操作</th></tr>
		<c:forEach items="${list}" var="tpl">
			<tr id="${tpl.id}" pId="0">
				<%--<td><a href="${ctx}/enviroment/category/form?id=${tpl.id}">${tpl.itemName}</a></td>--%>
				<td>${tpl.enterpriseName}</td>
				<td style="text-align:center;">
						${tpl.creditCode}
				</td>
				<td>${tpl.address}</td>
				<td>${tpl.envRepresentative}</td>
				<td>${tpl.representative}</td>
				<td>
					<%--<a href="${pageContext.request.contextPath}${fns:getFrontPath()}/list-${tpl.id}${fns:getUrlSuffix()}" target="_blank">详情</a>--%>
					<a href="${ctx}/enterprise/audit/form?id=${tpl.id}">详情</a>
					<a href="${ctx}/enterprise/enterprise/delete?id=${tpl.id}" onclick="return confirmx('要删除该企业项吗？', this.href)">删除</a>
				</td>
			</tr>
		</c:forEach>
	</table>
</form>
</body>
</html>